/**
 * User: ksyunyaka
 * Date: 11.12.11
 */
package org.electronic.registration.service {
import org.electronic.registration.bo.Doctor;
import org.electronic.registration.bo.SchedulerEntry;

public class SchedulerService {

    private var schedulerService:RemoteService;

    public function SchedulerService(additionalFaultHandler:Function = null) {
        schedulerService = new RemoteService("schedulerService");
        if (additionalFaultHandler != null) {
            schedulerService.addFaultHandler(additionalFaultHandler);
        }
    }

    public function save(scheduler:SchedulerEntry):void {
        schedulerService.save(scheduler);
    }

    public function getDoctorScheduler(doctor:Doctor, handler:Function):void {
        schedulerService.getDoctorScheduler(doctor, handler);
    }

    public function generateSchedulerForDoctor(doctor:Doctor, handler:Function):void {
        schedulerService.generateSchedulerForDoctor(doctor, handler);
    }

}
}
